from playwright.sync_api import Page


class BasePage:
    url = None

    def __int__(self, page):
        self.page = page

    def open(self):
        if self.url:
            self.page.goto(self.url)
        else:
            print("Not possible to open page")
